#include "head.h"
int makeWorker(int workerNum, workerdata_t * workerArr){
    for(int i = 0; i < workerNum; ++i){
        pid_t pid = fork();
        if(pid == 0){
            while(1){
                sleep(1);
            }
            //希望子进程永远脱离不了这个if结构
        }

        workerArr[i].status = FREE;
        workerArr[i].pid = pid; //父进程调用fork 获取了创建的子进程的pid
    }
    return 0;
}
